import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import index from '../views/index'
import home from '../components/home'
import allList from '../components/productList.vue'
import proDtail from '../views/productDetail'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
      children:[
        {
          path: '/',
          name: 'home',
          component: home,
        },
        {
          path:'/allList',
          name:allList,
          component:allList
        }
      ]
    },
    {
      path: '/proDtail',
      name: 'proDtail',   
      component:proDtail
    },
  ]
})
